<%@ page language="java" pageEncoding="UTF-8" %>
<%@ include file="common.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>权限管理系统</title>
    <style>
        .mb10{margin-bottom: 10px}
    </style>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="${ctx}/static/easyui/themes/icon.css">
    <script type="text/javascript">
        var ctx = "${ctx}";
    </script>
    <script type="text/javascript" src="${ctx}/static/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="${ctx}/static/js/jquery-extend.js"></script>
    <script type="text/javascript" src="${ctx}/static/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="${ctx}/static/js/index.js"></script>
</head>
<body>
<div class="easyui-layout" fit="true">
    <div data-options="region:'north'" style="height:10%;padding:0 10px 0 10px;">
        <h2 style="float: left;">欢迎使用《权限管理系统》</h2>
        <div style="float: right;">
            <span style="font-weight: bold;font-size:24px;" id="currentUserNick">${sessionScope.current_user.nick}</span>
            <a href="javascript:void(0);" class="easyui-linkbutton" onclick="quitLogin()">退出登录</a>
        </div>
    </div>
    <div data-options="region:'west',split:true" title="功能菜单" style="width:15%;position: static;">
        <ul id="menu_tree" class="easyui-tree">

        </ul>
    </div>
    <div data-options="region:'center'">
        <div id="option_tab" class="easyui-tabs" fit="true" data-options="onLoad:tabs_onLoad">

        </div>
    </div>
</div>

<div id="login_dl" class="easyui-dialog" closed="true" title="请登录" style="width:300px;height:200px; padding: 10px"
     data-options="closable:false,closed:true,resizable:true,modal:true,buttons:'#tb_login_dl'">
    <form id="form_login" method="post">
        <input type="hidden" name="role.id"/>
        <div class="mb10">
            <label>用户名:</label>
            <input class="easyui-validatebox" type="text" name="account" data-options="required:true"/>
        </div>
        <div class="mb10">
            <label>密码:</label>
            <input class="easyui-validatebox" type="password" name="pwd" data-options="required:true"/>
        </div>
    </form>
</div>
<div id="tb_login_dl">
    <span onclick="doLogin()" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true">提交</span>
</div>
</body>
</html>
